<link href="../addons/jy_vote/resource/app.min.css?v=201801120" rel="stylesheet">
<link href="../addons/jy_weishop/resource/css/room.css?v=7" rel="stylesheet">
<link href="../core/resource/components/swiper/swiper.min.css" rel="stylesheet" type="text/css">
<style>
    html, body {
      position: relative;
      height: 100%;
	  overflow:hidden;
    }
    body {
      background: #eee;
      font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
      font-size: 14px;
      color:#000;
      margin: 0;
      padding: 0;
    }
    .swiper-container {
      width: 100%;
      height: 100%;
    }
    .swiper-slide {
      text-align: center;
      font-size: 18px;
      background: #fff;

      /* Center slide text vertically */
      display: -webkit-box;
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
      -webkit-box-pack: center;
      -ms-flex-pack: center;
      -webkit-justify-content: center;
      justify-content: center;
      -webkit-box-align: center;
      -ms-flex-align: center;
      -webkit-align-items: center;
      align-items: center;
    }
.fe-floatright-bottom {
    min-height: 10px;
    position: fixed;
    bottom: 15px;
	right:15px;
    text-align: center;
    z-index: 1003;
}
.fe-floatright-bottom a{
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 100%;
    background-color: #333;
	color:#fff;
	line-height:1.6rem;
	margin: 0 auto;
    margin-right: 0;
}
.fe-floatright-bottom a .icon{
	color:#fff;
	font-size:1.1rem;
	height:1.6rem;
	opacity:1;
}
.sw_progress {
    position: absolute;
    display: none;
    height: 3px;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(0,0,0,.2);
}
.sw_progress span {
    display: block;
    height: 100%;
    width: 0;
    background-color: #08A1EF;
    transition: width 800ms cubic-bezier(0.260,.860,.440,.985);
}
.avatar-follow{
	height: 50px;
    width: 50px;
    background: #fff;
    margin: auto;
    border-radius: 50px;
    border: 2px solid #fff;
}

.footer-msg{
	 position: fixed;
	 bottom:0;
}
.likepiaofu img{width: 0px;position: fixed; bottom: 100px; right: 15px;}
.followpiaofu img{width: 0px;position: fixed; bottom: 260px; right: 25px;}
.fui-icon-group .fui-icon-col {
    margin: 0;
}
.search-input input {border: 0px solid #b4b4b4;background:#000;border-radius:1.2rem;padding:0.4rem 0.5rem;opacity:0.3;color:#fff;}
.fui-header:after {border-bottom: 0px solid #D9D9D9;}
.fui-tag-red-o{margin:0.2rem;color: #fff;font-size:0.50rem;line-height:0.5rem;-webkit-border-radius: 0.4rem;border-radius: 0.4rem;font-style: normal;padding:0.2rem 0.5rem;border: 1px solid #fff;}
/*拆红包*/
.chaihb{
    text-align: center;
	position:fixed;
	z-index:4;
	left: 50%;
	top: 40px;
	margin-left: -125px;
}
.mengc{
  position: fixed;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  overflow:auto;
}
.hongbao{
    background: #A5423A;
    width: 250px;
    height: 400px;	
	position: relative;	
    left: 0;
    top: 0;
	z-index:5;
    border-radius: 10px;
    margin: 0 auto;	
}
.topcontent{
    height: 280px;
    border: 1px solid #BD503A;
    background-color: #BD503A;
    border-radius: 10px 10px 50% 50% / 10px 10px 15% 15%;
    box-shadow: 0px 4px 0px -1px rgba(0,0,0,0.2);
}
.avatar{
    position: relative;
}
.avatar span{
    position: absolute;
    top: 10px;
    right: 15px;
    -webkit-transform: rotate(45deg);
        -ms-transform: rotate(45deg);		
            transform: rotate(45deg);
    font-size: 2em;
    font-weight: bolder;
}
#close{
    color: rgba(0,0,0,0.5);
}
.avatar img{
    border: 1px solid #BD503A;
    border-radius: 50%;
    overflow: hidden;
    margin-top: 10%;
}
.topcontent h2{
    margin: 3px 0;
}
.text{
    color: #999;
}
.description{
    margin: 15px 0;
    font-size: 16px;
    font-weight: 600;
}
#chai{
    width: 100px;
    height: 100px;
    border: 1px solid #FFA73A;
    background-color: #FFA73A;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    display: inline-block;
    margin-top: -50px;
    box-shadow: 0px 4px 0px 0px rgba(0, 0, 0, 0.2);
}
#chai span{
    margin-top: 35px;
    display: inline-block;
}
.rotate{
    -webkit-animation: anim .9s;
	-ms-animation: anim .9s  ;
            animation: anim .9s  ;
}
@-webkit-keyframes anim {
    from { -webkit-transform: rotateY(0deg); }
    to { -webkit-transform: rotateY(360deg); }
}
@-ms-keyframes anim {
    from { -ms-transform: rotateY(0deg); }
    to { -ms-transform: rotateY(360deg); }
}
@-o-keyframes anim {
    from { -o-transform: rotateY(0deg); }
    to { -o-transform: rotateY(360deg); }
}
@keyframes anim {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}
/*红包页面*/
.money{
	width:90%;
	max-width:320px;
	height:300px;
	background:#fff;
	margin:0 auto;
	color:black;
	font-size:14px;
}
.money p{
	color:black;
	font-size:14px;
}
.moneytop{
	width:100%;
	height:120px;
	background:#da4d43;
	border-radius: 0 0 50% 50% / 0 0 45% 45%;
}
.moneyimg{
	width: 60px;
	height: 60px;
	margin: 0 auto;
	margin-top: -50px;
	border-radius: 50%;	
}
.moneyimg img{
	width:60px;
	height: 60px;	
    border-radius: 50%;
    overflow: hidden;	
}
.moneyfont{
	margin-top: 20px;
}
.moneynum p{
	font-size:28px;
}
.moneysize{
	color:red;
}
.moneybtn{
	position: relative;
	margin-top: 20px;
	border: 0;
	padding: 10px;
	border-radius: 5px;
	font-size: 18px;
	box-shadow: 3px 4px #fff;
	background: #fe4b44;
	color: #fff;
	animation: moneybtn 200ms infinite alternate;
	-webkit-animation: moneybtn 200ms infinite alternate;	
}
@keyframes moneybtn{
	0%{
		box-shadow: 3px 4px #fff;
		top: 0px;		
	}
	50%{
		box-shadow: 2px 2px #fff;
		top: 1px;
	}	
	100%{
		box-shadow: 1px 0px #fff;
		top: 2px;
	}	
}
@-webkit-keyframes moneybtn{
	0%{
		box-shadow: 3px 4px #fff;
		top: 0px;		
	}
	50%{
		box-shadow: 2px 2px #fff;
		top: 1px;
	}	
	100%{
		box-shadow: 1px 0px #fff;
		top: 2px;
	}	
}
.u-guidevideo {
	width:38px;
	height:38px;
	background-size:100%;
	position:absolute;
	left:50%;
	bottom:50%;
	margin-top:-19px;
	margin-left:-19px;
	display:block;
	z-index:9998
}
source{
    min-width: 100%;
    min-height: 100%;
    height: auto;
    width: auto;
}
.fe-floatico-bottom {
    min-height: 10px;
    width: 60px;
    position: fixed;
    margin: 5px;
    z-index: 1000;
}
.vjs-error-display {display:none;}
.vjs-poster {display:none;}
.vjs-control-bar {display:none;}
.vjs-text-track-settings {display:none;}
.vjs-loading-spinner {display:none;}
.vjs-hidden {display:none;}
.video-js .vjs-big-play-button {display:none;}
video {background:none}
    .hidden{
        display: none;
    }
    .wave {
        position: relative;
        width: 100px;
        height: 100px;
        text-align: center;
        line-height: 110px;
        font-size: 40px;
    }

    .wave .circle {
        position: absolute;
        border-radius: 50%;
        opacity: 0;
    }

    /* 波纹效果 */
    .wave.ripple .circle {
        width: calc(100% - 6px); /* 减去边框的大小 */
        height: calc(100% - 6px); /* 减去边框的大小 */
        border: 3px solid #fff;
    }

    .wave.ripple .circle:first-child {
        animation: circle-opacity 2s infinite;
    }

    .wave.ripple .circle:nth-child(2) {
        animation: circle-opacity 2s infinite;
        animation-delay: .3s;
    }

    .wave.ripple .circle:nth-child(3) {
        animation: circle-opacity 2s infinite;
        animation-delay: .6s;
    }
    .wave.ripple.warning {
        color: #f1f1f1;
    }

    .wave.ripple.warning .circle {
        border-color: #f1f1f1;
    }
    .wave.solid .circle{
        width: 100%;
        height: 100%;
        background: #fff;
    }
    .wave.solid .circle:first-child {
        animation: circle-opacity 2s infinite;
    }
    .wave.solid.warning {
        color: #f1f1f1;
    }

    .wave.solid.warning .circle{
        background: #f1f1f1;
    }

    @keyframes circle-opacity{
        from {
            opacity: 1;
            transform: scale(0);
        }
        to {
            opacity: 0;
            transform: scale(1);
        }
    }
    .video-js.vjs-playing .vjs-tech {
        pointer-events: auto;
    }
	
.prompt .live-tips.play .inner .icon {
    height: auto;
    font-size: 2rem;
    line-height: 0.8rem;
}
</style>
<header class="app-header">
	<!-- 关注按钮 -->
	<div class="fe-guide" ng-if="(pagedata.isfollow==0 || !pagedata.isfollow) && pagedata.basic.needfollow==1" style="display:block;z-index:890;">
		<div class="fe-guide-faceimg"><img ng-src="{{tomedia(pagedata.pluginset.logo) || '../core/resource/images/nopic.jpg'}}" /></div>
		<div class="fe-guide-sub" onclick="$('#followbar').modal();">立即关注</div>
		<div class="fe-guide-text">
			<p class="">{{pagedata.pluginset.followtitle ||'加关注,更多权限！'}}</br>{{pagedata.pluginset.followdesc ||'关注公众号，享专属服务'}}</p>
		</div>
	</div>
	<!--弹目-->
	<div class="video-sms-list">
		<!--<li class="video-sms-pane">
			 <div class="video-sms-text">
				<img class="video-sms-logo" ng-src="{{tomedia() || '../core/resource/images/nopic.jpg'}}"/>
				<span class="overflow-h">：不错我！</span>
			</div>
        </li>-->
	</div>
	<div class="fe-floatback right" style="left: 4px;">
		<a href="javascript:void(0);" ng-click="goback()">
			<i class="icon icon-back"></i>
		</a>
	</div>
	<div class="likepiaofu"></div>
	<div class="followpiaofu"></div>
	<!--<a href="javascript:void(0);" id="audio_btn" class="off video_exist rotate">
		<div id="yinfu"></div>
		<audio src="" autoplay="autoplay" loop="loop"></audio>
	</a>
	<div class="music-loading">
	</div>-->
	<div ng-if="pagedata.goods.title" ng-click="access_json('jy_weishop/goods.detail//id='+pagedata.goods.id)" class="left-living fui-list-group merchgroup" style="position: fixed;width:10rem;bottom:8rem;height:auto;padding:0.2rem">
            <div class="fui-list jump " style="padding:0.2rem">
                <a class="fui-list-media">
                    <img class="round" ng-src="{{tomedia(pagedata.goods.image) ||'../core/resource/images/nopic.jpg'}}">
                </a>
                <a class="fui-list-inner" style="color:#fff">
                    <div class="title" style="color:#fff">{{pagedata.goods.title}}</div>
                    <div class="price">￥<span class="red">{{pagedata.goods.price}}</span></div>
                </a>
                <a class="fui-remark jump">
                </a>
            </div>   
	</div>
	<div class="video-keep-pane" style="right:-0.7rem;bottom:300px">
		<div ng-if="pagedata.group.type ==0" ng-click="access_json('jy_vote/voteuser//type=0&id='+pagedata.opus.id)" class="video-keep-text">
			<img ng-repeat="img in pagedata.voteusers" class="video-keep-logo" style="margin-left:-{{0.6 + 0.5*$index}}rem" ng-src="{{tomedia(img.avatar) || '../core/resource/images/nopic.jpg'}}"/>
			<span class="overflow-h">{{pagedata.opus.votenums || 0}}人投票</span>
		</div>
		<div ng-if="pagedata.group.type ==1" ng-click="access_json('jy_vote/voteuser//type=1&id='+pagedata.opus.id)" class="video-keep-text">
			<img ng-repeat="img in pagedata.likeusers" class="video-keep-logo" style="margin-left:-{{0.6 + 0.5*$index}}rem" ng-src="{{tomedia(img.avatar) || '../core/resource/images/nopic.jpg'}}"/>
			<span class="overflow-h">{{pagedata.opus.likes || 0}}人点赞</span>
		</div>
	</div>
	<div class="fe-floatright-bottom right" href="javascript:;" ng-click="pagedata.setfollow();toogle(pagedata,'isfans',[1,0])" style="bottom:375px;right:8px">
		<div class="avatar-follow"><img class="img-circle" ng-src="{{tomedia(pagedata.user.avatar) || '../core/resource/images/gw-user.png'}}" style="width:46px;height:46px" /></div>
			<i ng-class="{'icon jinyunicon':1,'icon-follow':pagedata.isfans !=1,'icon-xiai':pagedata.isfans ==1}" style="color:red;position: absolute;top:33px;right:16px"></i>
	</div>
	<div ng-if="pagedata.reply.id" class="fe-floatright-bottom right" style="bottom:240px">
		<a ng-click="access_json('jy_vote/ranking//id='+pagedata.reply.id)">
			<i class="icon jinyunicon icon-paixing" style="font-size:1.2rem;"></i>
		</a>
		<span style="font-size:0.5rem;color:#fff">排行</span>
	</div>
	<div ng-if="pagedata.user.ishongbao ==1 && pagedata.reply.hb_no!=1" class="fe-floatright-bottom right"  style="bottom:180px">
		<a onclick="$('#showhongbao').modal();">
			<i class="icon jinyunicon icon-ai-hongbao" style="color:red;font-size:1.0rem;"></i>
		</a>
		<span style="font-size:0.5rem;color:#fff">红包</span>
	</div>
	<div class="fe-floatright-bottom right" style="bottom:125px">
		<a ng-click="pagedata.setlike();pagedata.islike=1">
			<i ng-class="{'icon jinyunicon':1, 'icon-good':pagedata.islike!=1,'icon-good-filling':pagedata.islike==1}"></i>
		</a>
		<span style="font-size:0.5rem;color:#fff">{{pagedata.islike==1?'已赞':'赞'}}:{{pagedata.opus.likes || 0}}</span>
	</div>
	<div ng-if="pagedata.isme !=1 || pagedata.opus.plugin" class="fe-floatright-bottom right" style="bottom:70px">
		<a ng-click="pagedata.setshoucang();toogle(pagedata,'isshoucang',[1,0])">
			<i ng-class="{'icon jinyunicon':1, 'icon-follow':pagedata.isshoucang!=1,'icon-xiai':pagedata.isshoucang==1}"></i>
		</a>
		<span style="font-size:0.5rem;color:#fff" ng-if="pagedata.isshoucang !=1">收藏</span>
		<span style="font-size:0.5rem;color:#fff" ng-if="pagedata.isshoucang ==1">已收藏</span>
	</div>
	<div ng-if="pagedata.install ==1 && pagedata.isme ==1 && !pagedata.opus.plugin && !pagedata.pluginset.noposter" class="fe-floatright-bottom right" style="bottom:70px">
		<a href="javascript:;" ng-click="access_json('jy_vote/poster//id='+pagedata.opus.id)">
			<i class="icon jinyunicon icon-tuwen"></i>
		</a>
		<span style="font-size:0.5rem;color:#fff" ng-if="pagedata.isshoucang !=1">生海报</span>
	</div>
	<div ng-if="pagedata.iswechat" class="fe-floatright-bottom right">
		<a onclick="$('#showsharecover').modal();">
			<i class="icon jinyunicon icon-fenxiang2"></i>
		</a>
		<span style="font-size:0.5rem;color:#fff">转发</span>
	</div>
	<div class="footer-msg" style="width:calc(100% - 50px)">
        <div class="fui-cell-group" style="background:none;margin-top:0">
			<div class="fui-cell noborder">
				<div class="fui-cell-text" style="color:#fff;font-size:0.5rem"><img src="../addons/jy_vote/resource/img/auido-bai.gif" style="margin-top:-2px;width:10px;height:10px" /> {{pagedata.opus.description || '或许青春的星光有些朦胧，但我们有足够的热情点亮自我的人生灯盏！为我加油~~'}}</div>
			</div>
			<div class="fui-cell noborder" style="padding-top:0;padding-right:0">
				<div class="fui-cell-icon" style="width:2rem"><img class="img-circle" ng-src="{{tomedia(pagedata.user.avatar) || '../core/resource/images/gw-user.png'}}" style="width:2rem;height:2rem" /></div>
				<div class="fui-cell-info" style="color:#f60">
					<span class="overflow-h" style="width:3rem">{{pagedata.user.nickname || '匿名用户'}}</span>
					<button ng-if="pagedata.group.type ==0" ng-click="pagedata.setvote();code_image('imgverify')" type="button" class="btn btn-lg btn-success" style="font-size:0.7rem;margin-right:0">投票</button>
					<button ng-if="pagedata.group.type ==1" ng-click="pagedata.setlike();" type="button" class="btn btn-lg btn-success" style="font-size:0.7rem;margin-right:0">点赞</button>
					<button ng-if="pagedata.reply.type !=0 && pagedata.user.ishongbao ==1 && pagedata.reply.hb_no!=1" onclick="$('#showhongbao').modal();" type="button" class="btn btn-lg btn-danger" style="font-size:0.7rem">发红包</button>
					<button ng-if="pagedata.reply.type ==0 && pagedata.reply.nojiangpin !=1" onclick="$('#sendliping').modal();" type="button" class="btn btn-lg btn-danger" style="font-size:0.7rem">送礼</button>
					
				</div>
			</div>
			<div class="fui-cell noborder" style="padding-top:0">
				<div class="fui-cell-info" ng-click="pagedata.msgshow = true" style="background:#666;border-radius:1.2rem;padding:0.4rem 0.5rem;opacity:0.5;color:#fff;"><i class="icon jinyunicon icon-shuru" style="color:#fff"></i>写支持语/评论...</div>
			</div>
			<!--<div ng-if="pagedata.ismsg !=1" class="fui-cell noborder" style="padding-top:0">
				<div class="fui-cell-info"  onclick="$('#showzufu').modal();" style="background:#666;border-radius:1.2rem;padding:0.4rem 0.5rem;opacity:0.5;color:#fff;"><i class="icon jinyunicon icon-shuru" style="color:#fff"></i>写支持语/评论...</div>
			</div>-->
		</div>
    </div>
</header>
<div id="followbar" class="modal fade" tabindex="-1" style="display:none;">
		<div class="modal-dialog" style="width:70%;left:15%">
			<div class="modal-content">
				<div class="wap-qrcode-container">
					<p class="example1">{{pagedata.pluginset.title || '欢迎浏览'}}</p>
						<div class="wap-qrcode-image">
							<img ng-src="{{tomedia(pagedata.pluginset.ewm) || '../core/resource/images/nopic.jpg'}}"/>
						</div>
					<p class="example1">长按二维码关注</p>
				</div>
			</div>
		</div>
</div>
<div id="showzufu"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div class="modal-dialog" style="width:100%;left:0%;bottom:0">
<div class="modal-content" >
    <!--评价-->
		<div class="fui-header searchtop" style="margin:0 0.3rem;background:#fff;position:relative">
			<div class="title">
				<div class="searchbar searchbar-active" style="margin:0.4rem 2.6rem 0.4rem 0">
						<div class="search-input">
							<input type="text" style="border-radius:1.2rem;" ng-model="pagedata.post.msg" placeholder="写祝福语..." value="{{pagedata.post.msg}}">
						</div>
				</div>
			</div>
			<div class="fui-header-right">
				<a aria-hidden="true" data-dismiss="modal" ng-click="pagedata.setmsg(pagedata.post.msg,pagedata.opus.id);pagedata.islike=1">发布</a>
			</div>
		</div>
		<div class="fui-icon-group noborder col-4" style="background: #ffffff;padding-left:15px;padding-right:15px;padding-bottom:15px">
			<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.msg = '不错！加油，看好你哦!'">
					<div class="icon"><i class="icon jinyunicon icon-biaoqing"></i></div>
					<div class="text" style="color: #666666;">加油！加油！</div>
			</a>
			<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.msg = '宝贝!你最棒！'">
					<div class="icon"><i class="icon jinyunicon icon-biaoqing"></i></div>
					<div class="text" style="color: #666666;">你最棒！</div>
			</a>
			<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.msg = '点赞！点赞!'">
					<div class="icon"><i class="icon jinyunicon icon-biaoqing"></i></div>
					<div class="text" style="color: #666666;">点赞！点赞</div>
			</a>
			<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.msg = '好样的！有出息！'">
					<div class="icon"><i class="icon jinyunicon icon-biaoqing"></i></div>
					<div class="text" style="color: #666666;">好样的！</div>
			</a>
			<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.msg = '好样的！舅支持你！'">
					<div class="icon"><i class="icon jinyunicon icon-biaoqing"></i></div>
					<div class="text" style="color: #666666;">舅支持你！</div>
			</a>
			<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.msg = '棒棒的！姨支持你！'">
					<div class="icon"><i class="icon jinyunicon icon-biaoqing"></i></div>
					<div class="text" style="color: #666666;">姨支持你！</div>
			</a>
			<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.msg = '棒棒的！叔支持你！'">
					<div class="icon"><i class="icon jinyunicon icon-biaoqing"></i></div>
					<div class="text" style="color: #666666;">叔支持你！</div>
			</a>
			<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.msg = '棒棒的！姑支持你！'">
					<div class="icon"><i class="icon jinyunicon icon-biaoqing"></i></div>
					<div class="text" style="color: #666666;">姑支持你！</div>
			</a>
		</div>
</div>
</div>
</div>

<div id="sendliping"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div class="modal-dialog" style="width:100%;left:0%;bottom:0">
<div class="modal-content" >
    <!--送礼物-->
		<div class='fui-cell-title text-center' style="background: white;">选择礼品</div>
		<div class="fui-icon-group noborder col-4" style="background: #ffffff;padding-left:15px;padding-right:15px;padding-bottom:15px">
			<a ng-repeat="lp in pagedata.liping"  class="fui-icon-col external" href="javascript:;" ng-click="pagedata.sendlp(lp.id);">
					<div class="fui-cell-icon"><img class="img-circle" ng-src="{{tomedia(lp.picurl) || '../core/resource/images/gw-user.png'}}" style="width:38px;height:38px" /></div>
					<div class="text" style="color: #666666;">{{lp.title}}</div>
					<div class="subtitle" style="color: #666666;font-size:0.5rem">价格:{{lp.price}}</div>
					<div class="subtitle" style="color: #666666;font-size:0.5rem">{{pagedata.group.type==0?'票数':'赞数'}}:{{lp.jifen}}</div>
			</a>
		</div>
</div>
</div>
</div>
<div ng-if="pagedata.msgshow" class="popup">
<div class="popup-body">
<div class="popup-bottom">
	<i class="closed icon icon-cuowu" ng-click="pagedata.msgshow=false"></i>
    <!--评价-->
		<div class="fui-cell-group fui-comment-group">	
				<div class="fui-cell">
					<div class="fui-cell-h3" style="margin-left:-22px">{{pagedata.msgnum || 0}}条评论</div>
				</div>
				<div ng-repeat="m in pagedata.list" class="fui-cell fui-cell-click noborder">
					<div class="fui-cell-icon" style="width:46px;margin-top:-10px"><img class="img-circle" ng-src="{{tomedia(m.member.avatar) || '../core/resource/images/gw-user.png'}}" style="width:46px;height:46px" /></div>
					<div class="fui-cell-text desc">
						<div class="fui-cell noborder" style="padding:0.25rem">
							<div class="fui-cell-text" style="color:#f60">{{m.username || '匿名用户'}}</div>
							<div class="fui-cell-text r"><i class="icon jinyunicon icon-good"></i>{{m.likenum || '赞'}}</div>
						</div>
						<div class="fui-cell noborder padding03" style="padding:0.25rem">
							<div class="fui-cell-text" style="color:#000">
								{{m.content || '没有任何评价留言信息！'}}
							</div>
						</div>
						<div class="fui-cell noborder padding03" style="padding:0.25rem">
							<div class="fui-cell-text" style="font-size:0.5rem">
								{{m.createtime}} 
							</div>
						</div>
					</div>
				</div>
	</div>
		<div class="fui-icon-group noborder col-4" style="background: #ffffff;padding-left:15px;padding-right:15px;padding-bottom:15px">
			<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.msg = '不错！加油，看好你哦!'">
					<div class="icon"><i class="icon jinyunicon icon-biaoqing"></i></div>
					<div class="text" style="color: #666666;">加油！加油！</div>
			</a>
			<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.msg = '宝贝!你最棒！'">
					<div class="icon"><i class="icon jinyunicon icon-biaoqing"></i></div>
					<div class="text" style="color: #666666;">你最棒！</div>
			</a>
			<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.msg = '点赞！点赞!'">
					<div class="icon"><i class="icon jinyunicon icon-biaoqing"></i></div>
					<div class="text" style="color: #666666;">点赞！点赞</div>
			</a>
			<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.msg = '好样的！有出息！'">
					<div class="icon"><i class="icon jinyunicon icon-biaoqing"></i></div>
					<div class="text" style="color: #666666;">好样的！</div>
			</a>
			<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.msg = '好样的！舅支持你！'">
					<div class="icon"><i class="icon jinyunicon icon-biaoqing"></i></div>
					<div class="text" style="color: #666666;">舅支持你！</div>
			</a>
			<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.msg = '棒棒的！姨支持你！'">
					<div class="icon"><i class="icon jinyunicon icon-biaoqing"></i></div>
					<div class="text" style="color: #666666;">姨支持你！</div>
			</a>
			<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.msg = '棒棒的！叔支持你！'">
					<div class="icon"><i class="icon jinyunicon icon-biaoqing"></i></div>
					<div class="text" style="color: #666666;">叔支持你！</div>
			</a>
			<a class="fui-icon-col external" href="javascript:;" ng-click="pagedata.post.msg = '棒棒的！姑支持你！'">
					<div class="icon"><i class="icon jinyunicon icon-biaoqing"></i></div>
					<div class="text" style="color: #666666;">姑支持你！</div>
			</a>
		</div>
		<div class="fui-header searchtop" style="margin:0 0.3rem;background:#fff;position:relative">
			<div class="title">
				<div class="searchbar searchbar-active" style="margin:0.4rem 2.6rem 0.4rem 0">
						<div class="search-input">
							<input type="text" style="border-radius:1.2rem;" ng-model="pagedata.post.msg" placeholder="写评论语..." value="{{pagedata.post.msg}}">
						</div>
				</div>
			</div>
			<div class="fui-header-right">
				<a aria-hidden="true" data-dismiss="modal" ng-click="pagedata.setmsg(pagedata.post.msg,pagedata.opus.id);pagedata.islike=1">发布</a>
			</div>
		</div>
</div>
</div>
</div>
<!--<section class="app-content">
				<section ng-repeat="item in pagedata.opus_images"  class="page page-link z-current bounceout" data-plugin-type="info_link" style="background-image: url({{tomedia(item)}});">
					<section class="page-content">
						<div class="u-maskLayer m-weixinShareLayer z-hide" style="display:none;">
							<img src="../addons/jy_vote/resource/img/weixin-share-guide.png">
						</div>
					</section>
					<a href="javascript:void(0);" class="u-guideTop z-move"></a>
				</section>
</section>-->
<!-- <script type="text/javascript" src="../addons/jy_vote/resource/init.min.js?ver=2.1"></script>-->
<div class="fui-page" style="background:#000">
<div class="swiper-container fullscreen" style="background:#000">
    <div ng-if="!pagedata.opus.video" class="swiper-wrapper">
		<div class="swiper-slide page page-link" ng-repeat="item in pagedata.opus_images"  style="width: 100%;height: 100%; background-image: url({{tomedia(item)}});background-size: cover;background-position: 50% 50%;">
			<a href="javascript:void(0);" class="u-guideTop z-move"></a>
		</div>
		<!--<video controls id="videoplay" ng-if="pagedata.opus.video" poster="{{tomedia(pagedata.opus.thumb) || tomedia(pagedata.reply.noimg)}}" height="100%" width="100%" controls x5-video-player-type="h5" playsinline webkit-playsinline="true" preload="auto" loop="loop">
			<source ng-src="{{tomedia(pagedata.opus.video)}}" type="video/mp4" >
		</video>-->
		<i ng-if="false && pagedata.videoplay!=1 && pagedata.reply.showtype==1" href="javascript:void(0);" class="icon icon-shipin1 u-guidevideo" style="color:#fff;font-size:38px"></i>
	</div>
	<div ng-if="pagedata.opus.video" id="my-videoblock" class="swiper-wrapper block-video">	
			<video id="player" preload="auto" ng-poster="{{tomedia(pagedata.opus.thumb)}}"  playsinline webkit-playsinline x5-video-player-type="h5-page" style="margin: auto;" autoplay="autoplay" class="video-js" width="100%" height="100%">
					<source ng-src="{{tomedia(pagedata.opus.video)}}"  type="video/mp4">
			</video>
		</div>
		<div ng-if="pagedata.opus.video" id="control" class="prompt">
			<div id="pauseBtn" class="live-tips play btn-play" style="margin-top:-6.6rem">
					<div class="inner" style="background:none;width: 100px;">
						<div class="wave solid warning">
							<div class="circle"></div>
							<div class="content">
								 <svg class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5228" width="32" height="32"><path d="M732.502883 465.602819c-107.883492-82.3454-215.772403-164.681769-323.652282-247.014525-38.414608-29.327534-93.780555-1.929039-93.780555 46.396277v494.029051c0 48.325316 55.365948 75.725617 93.780555 46.398084 107.87988-82.332757 215.76879-164.669126 323.652282-247.014525 30.61356-23.357989 30.61356-69.436372 0-92.794362z" fill="#ffffff" p-id="5229"></path></svg>
							</div>
						</div>
					</div>
			</div>
	</div>
	<!--<div class="sw_progress" style="display: block; z-index: 100;"><span style="width: {{pagedata.width || 20}}%;"></span></div>-->
</div>
</div>
<div id="showhongbao"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div class="modal-dialog" style="width:100%;left:0%;top:2%">
<div class="jymodal-content" style="background:url('{{tomedia(pagedata.pluginset.o_hongbao) || '../addons/jy_vote/resource/img/h-480.png'}}') no-repeat;background-size:100% 100%;padding:30px">
		<div aria-hidden="true" data-dismiss="modal" class="closebtn" style="top:50px;right:30px"><i class="icon jinyunicon icon-wrong" style="font-size:0.9rem;font-weight:bold"></i></div>
		<div class="fui-cell-group" style="padding:150px 15px 30px 15px;background:none;">				
				<div class="fui-cell must noborder">
						<div id="oninput" class="fui-cell-text" style="white-space: nowrap;background:#fff;border-radius:1.2rem;padding:0.1rem 0.5rem">红包金额：<input type="number" class='fui-input' onblur="reset_body()" onkeyup='clearNoNum(this)' placeholder="请输入红包金额" ng-model="pagedata.post.money" style="width:auto;height:1.4rem;cursor: pointer;" /></div>
				</div>
				<div class="fui-cell must noborder" style="margin-top:0;padding-top:0">
					<div class="fui-cell-text name ">
						<span class="fui-tag fui-tag-red-o" style="color:red" ng-click="pagedata.post.money=10">10元红包</span><span class="fui-tag fui-tag-red-o" style="color:red" ng-click="pagedata.post.money=20">20元红包</span><span class="fui-tag fui-tag-red-o" style="color:red" ng-click="pagedata.post.money=50">50元红包</span>
						<span class="fui-tag fui-tag-red-o" style="color:red" ng-click="pagedata.post.money=100">100元红包</span><span class="fui-tag fui-tag-red-o" style="color:red" ng-click="pagedata.post.money=168">168元红包</span>
						<div class="coupon-mini" style="color:#fff;padding:0.2rem">快速选择一个红包发送 <i class="icon jinyunicon icon-yuding" style="font-size:0.5rem;color:#fff"></i></div>
					</div>
				</div>
				<div class="fui-cell must noborder" style="padding-top:0;">
						<div class="fui-cell-text" style="white-space: nowrap;background:#fff;border-radius:1.2rem;padding:0.1rem 0.5rem">赠送人：<input type="text" class='fui-input' onblur="reset_body()" placeholder="请输入您的姓名"  ng-model="pagedata.post.username" style="width:auto;height:1.4rem;"/></div>
				</div>
				<div class="fui-cell noborder" style="padding-top:0">
					<div class="fui-cell-info" style="color:#fff"><i class="icon jinyunicon icon-biaoqing" style="color:#fff"></i> 红包金额全部转至发布人账号~</div>
				</div>
				<a ng-click="pagedata.sendhb();" class="btn btn-success block bold" style="background:#FF9900;color:#CC3300;border-radius:1.2rem;height: 2.3rem;line-height: 2.1rem;padding: 0 0.6rem;font-size:1rem">塞钱进红包</a>
		</div>
</div>
</div>
</div>
<!--投票弹红包-->
<div id="chaihb"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div class="modal-dialog" style="width:100%;left:0%;top:5%">
<div class="jymodal-content" style="background:url('') no-repeat;background-size:100% 100%;">
		<div aria-hidden="true" data-dismiss="modal" class="closebtn" style="right:30px;top:0"><i class="icon jinyunicon icon-wrong" style="font-size:0.8rem"></i></div>
		<div class="chaihb" id="chaihb">	
			<div class="weui_mask"></div>
			<div class="hongbao">
				<div class="topcontent">
					<div class="avatar">
						<img src="{{tomedia(pagedata.account.logo)}}" alt="" width="80" height="80">
					</div>
					<h2 style="color:#fff">{{pagedata.account.title}}</h2>
					<span class="text">给你发了一个红包</span>
					<div class="description" style="color:#fff">恭喜发财 大吉大利</div>
				</div>
				<div class="chai" id="chai">
					<span ng-click="pagedata.chouhb();" aria-hidden="true" data-dismiss="modal" class="fontchai">拆红包</span>
				</div>
			</div>
		</div>
</div>
</div>
</div>

	<!-- 红包页面 -->
<div id="loadingToast"  class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div class="modal-dialog weui_toast" style="width:100%;left:0%;top:5%;background:none">
<div class="jymodal-content" style="background:url('') no-repeat;background-size:100% 100%;padding:30px">
		<div class="arterweima">
			<div aria-hidden="true" data-dismiss="modal" ><i class="icon jinyunicon icon-wrong" style="font-size:0.8rem"></i></div><br>
			<div class="money">
				<div class="moneytop"></div>
				<div class="moneyimg">
					<img src="{{tomedia(pagedata.account.logo)}}"/>
				</div>
				<div class="moneyfont">
					<p>{{pagedata.account.title}}的红包</p>
					<p style="color:#cfcac7">{{pagedata.reply.hb_msg||'恭喜发财，大吉大利！'}}</p>
				</div>
				<div class="moneynum">
				<p><font class="moneysize">{{pagedata.redmoney || 0}}</font><font style="font-size:12px;">元</font></p>
				</div>
				<p style="font-size:12px;">{{pagedata.reply.hb_remark||'已通过公众号发送，请查收'}}</p>
			</div>
		</div>
	</div>
</div>
</div>
</div>
<!--分享弹层-->
<div id="showsharecover" class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div class="modal-dialog" style="width:100%;left:0;top:0">
	<div id="cover">
		<div class='fui-mask-m visible'></div>
		<div class='arrow'></div>
		<div class='content'>请点击右上角<br/>通过【发送给朋友】<br/>邀请好友点赞哦！</div>
	</div>
</div>
</div>
<!--验证码-->
<div id="is_yanzheng" class="modal fade" tabindex="-1" style="z-index:99999;display:none;position: absolute">
		<div class="modal-dialog" style="width:60%;left:20%;top:30%">
			<div class="fui-cell-group">
				<div class="fui-cell-title">验证码</div>
				<div class="fui-cell must" style="margin-top:0.2rem;padding-top:0.2rem">
					<div class="fui-cell-info">
						<input type="text" class='fui-input' placeholder="请输入验证码" ng-model="pagedata.post.code"/>
					</div>
					<div class="fui-cell-remark noremark"><a href="javascript:;" id="code" ng-click="code_image('imgverify')" style="text-decoration: none"><img id="imgverify" id="code" src="" style="height:1rem;"/></a></div>
					
				</div>
				<a ng-init="code_image('imgverify')" aria-hidden="true" data-dismiss="modal" href='javascript:;' ng-click="pagedata.setvote(1)" class='btn btn-success block'>投票</a>
			</div>
		</div>
</div>
<div ng-if="pagedata.showgetcode" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:#fc6d60">
			<style>
				input{ caret-color: #fff}
				.fui-cell-group .fui-cell .fui-cell-info  ::-webkit-input-placeholder{
					color: #fff
				}
				.fui-cell-group .fui-cell .fui-cell-info {
					font-size: 0.85rem;
					color: #fff;
				}
			</style>
			<i class="closed icon icon-cuowu" ng-click="pagedata.showgetcode=false"></i>
			 <div class='fui-cell-group fui-cell-group-o' style="margin:0.5rem 2rem;padding-top:0.5rem;background:#fc6d60">
				<div class='fui-cell-title c' style="color:#fff">恭喜您，可以领取《线下券码》
				</div>
				<div ng-if="pagedata.vote_code" class='fui-cell-title c' style="color:#fff">领取的《线下券码》：{{pagedata.vote_code}}
				</div>
			</div>
			<div ng-if="!pagedata.vote_code" class="weui_btn_area" style="margin:2rem;">
				<a class='weui_btn weui_btn_primary' style="border-radius:1rem;background-color:#fff;color:#fc6d60" ng-click="pagedata.getcode()">确认领取</a>
			</div>
		</div>
	</div>
</div>
<script src="../addons/jy_weishop/resource/js/live.js"></script>
<script>
scope.pagedata.post = {}
scope.pagedata.post.money = 10
scope.pagedata.showhongbao=function(){
	$('body').addClass('fixed');
	$('#showhongbao').modal();
}
/*setTimeout(function(){
	wx.getNetworkType({
	  success: function (res) {
		document.getElementById('videoplay').play();
	  }
	});
},1000);*/
function clearNoNum(obj) {  
    obj.value = obj.value.replace(/[^\d.]/g,""); //清除"数字"和"."以外的字符  
        obj.value = obj.value.replace(/^\./g,""); //验证第一个字符是数字而不是  
        obj.value = obj.value.replace(/\.{2,}/g,"."); //只保留第一个. 清除多余的  
        obj.value = obj.value.replace(".","$#$").replace(/\./g,"").replace("$#$",".");  
        obj.value = obj.value.replace(/^(\-)*(\d+)\.(\d\d).*$/,'$1$2.$3'); //只能输入两个小数  

}
scope.pagedata.getitem=function(type){
	if(type==1){
		var oid=scope.pagedata.onid
	}else{
		var oid=scope.pagedata.nextid
	}
	scope.page_loading();
	scope.get('jy_vote/o_detail//id='+oid,function(res){
		scope.pagedata=$.extend(scope.pagedata,res)
		scope.page_loading('hide');
		if(scope.pagedata.item.video){
			live(1);
		}
		scope.$evalAsync();
	});
}
//概率计算
scope.pagedata.random=function(rate){
	var rate = parseInt(rate);
	var n = Math.random() * 100;
	if(n <= rate){
		return true
	}else{
		return false
	}
}
//发红包
scope.pagedata.sendhb=function(){
	scope.post_json('jy_vote/o_detail/sendhb/',{'money':scope.pagedata.post.money,'username':scope.pagedata.post.username},function(res){
			if(res.payid){
				require(['tool'],function(tool){
					tool.pay(res.payid,function(res){
						if(res.type=='success'){
							$('#showhongbao').modal('hide');
							scope.message('支付成功！');
							
						}else{
							scope.message('支付失败！失败原因：'+res.message,'error');
						}
					});
				});
			}
	});

}
scope.pagedata.chouhb=function(){
	scope.post_json('jy_vote/o_detail/chouhb/',{},function(res){
			if(res.ok){
				scope.pagedata.redmoney = res.fee;
				setTimeout($('#loadingToast').modal(),500);
			}else{
				scope.message(res.msg)
			}
	});
}
require(['swiper'], function (Swiper) {
    var myswiper = new Swiper('.swiper-container', {
      direction: 'vertical',
      pagination: {
        el: '.swiper-pagination',
      },
	  on:{
        touchEnd:function(event){
			var _contentHeight = document.getElementsByClassName('swiper-container')[0].offsetHeight;
			var allheight = _contentHeight*(scope.pagedata.opus_images.length-1)
			console.log(allheight)
			if((myswiper.translate<= -allheight- 50 && myswiper.translate < 0) && (scope.pagedata.next || scope.pagedata.opus_images.length==1 || scope.pagedata.opus.video)){
				 if(!scope.pagedata.nextmsg && !scope.pagedata.opus.video){
					scope.pagedata.nextmsg=true
					scope.message('最后一张图了,再次上滑阅读下一作品！');
				 }else{
					if(scope.pagedata.nextid){
						scope.pagedata.getitem();
						//window.location.href=scope.pagedata.nexturl
					}else{
						scope.message('已经是最后一个作品了！');
					}
					//scope.access_json('jy_vote/o_detail//id='+scope.pagedata.nextid)
				 }
			}
			if((myswiper.translate>= 50)){
				 if(!scope.pagedata.onmsg && !scope.pagedata.opus.video){
					scope.pagedata.onmsg=true
					scope.message('已经是第一张图了,再次下滑阅读上一作品！');
				 }else{
					if(scope.pagedata.onid){
						scope.pagedata.getitem();
						//window.location.href=scope.pagedata.onurl
					}else{
						scope.message('已经是第一个作品了！');
					}
					//scope.access_json('jy_vote/o_detail//id='+scope.pagedata.onid)
				 }
			}
        },        
        slidePrevTransitionEnd:function(){
			console.log('prev')
            scope.pagedata.next=false
			scope.pagedata.nextmsg=false
        },
        slideNextTransitionEnd:function(){
			scope.pagedata.index = myswiper.activeIndex;
			scope.pagedata.next=true;
			scope.pagedata.onmsg=false
			console.log('next');
        },
	}
    });
});
//获取点赞
scope.pagedata.setlike=function(){
	scope.post_json('jy_vote/o_detail/like/',{'like':scope.pagedata.islike},function(res){
			if(res.success == 1){
				scope.message('点赞成功！');
				scope.pagedata.opus.likes++
				scope.$evalAsync();
				var time = 0
				for(var i = 0;i<88;i++){
					setTimeout('likepiaofu()',time);
					if(i<10){
						time += 100
					}else if(i>=10 && i<20){
						time += 200
					}else if(i>=20 && i<30){
						time += 300
					}else if(i>=30 && i<40){
						time += 400
					}else if(i>=40 && i<50){
						time += 500
					}else if(i>=50 && i<60){
						time += 600
					}else if(i>=60 && i<70){
						time += 700
					}else if(i>=70 && i<80){
						time += 800
					}else{
						time += 900
					}
				}
			}
	});
}
//收藏
scope.pagedata.setshoucang=function(){
	scope.post_json('jy_vote/o_detail/shoucang/',{'isshoucang':scope.pagedata.isshoucang},function(res){
			scope.message(res)
	});
}
//获取关注
scope.pagedata.setfollow=function(){
	scope.post_json('jy_vote/o_detail/follow/',{},function(res){
			scope.message(res)
			var time = 0
			for(var i = 0;i<88;i++){
				setTimeout('followpiaofu()',time);
				if(i<10){
					time += 100
				}else if(i>=10 && i<20){
					time += 200
				}else if(i>=20 && i<30){
					time += 300
				}else if(i>=30 && i<40){
					time += 400
				}else if(i>=40 && i<50){
					time += 500
				}else if(i>=50 && i<60){
					time += 600
				}else if(i>=60 && i<70){
					time += 700
				}else if(i>=70 && i<80){
					time += 800
				}else{
					time += 900
				}
			}
	});
}
//获取留言
scope.tool.get_list('jy_vote/o_detail/getmsg/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_vote/o_detail/getmsg/');
}
//提交留言
scope.pagedata.setmsg=function(msg,id){
	if(!msg){
		scope.message('发布失败，没有内容！','error');
	}
	scope.post_json('jy_vote/o_detail/setmsg/',{'msg':msg,'id':id},function(res){
			scope.message(res.msg)
			vote_tanmu(msg,res.avatar)
	});
}
//提交礼物
scope.pagedata.sendlp=function(lpid){
	scope.post_json('jy_vote/o_detail/sendlp/',{'lpid':lpid},function(res){
				if(res.payid){
					require(['tool'],function(tool){
						tool.pay(res.payid,function(res){
							if(res.type=='success'){
								$('#sendliping').modal('hide');
								scope.message('支付成功！');
								
							}else{
								scope.message('支付失败！失败原因：'+res.message,'error');
							}
						});
					});
				}
		
	});
}

//投票
scope.pagedata.setvote=function(type){
	if((scope.pagedata.isfollow || scope.pagedata.isfollow==0) && (scope.pagedata.reply.isfollow=='1' || scope.pagedata.reply.isfollow=='3')){
		scope.confirm({
			'message':'请先关注，再投票吧！',
			'success':function(){
				$('#followbar').modal();
			},
			'fail':function(){}
		});
		return false
	}
	if(!type && scope.pagedata.reply.is_yanzheng =='1'){
		scope.confirm({
			'message':'请先输入验证码！',
			'success':function(){
				$('#is_yanzheng').modal();
			},
			'fail':function(){}
		});
		return false
	}
	if(type && scope.pagedata.reply.is_yanzheng =='1' && !scope.pagedata.post.code){
		scope.message('请先输入验证码!');
		return false
	}
	scope.post_json('jy_vote/o_detail/setvote/',{'code':scope.pagedata.post.code},function(res){
			scope.pagedata.post.code='';
			if(res){
				scope.pagedata.opus.votenums++
				scope.$evalAsync();
				scope.message('投票成功!');
				//var chaihb = scope.pagedata.random(scope.pagedata.reply.tanchu_rate);
				if(res.istanchu ==1){
					setTimeout(function(){
						$('#chaihb').modal('show');
					},1000);
				}
				if(res.getcode==1){
					scope.pagedata.showgetcode=true;
					scope.pagedata.logid=res.logid
					scope.$evalAsync();
				}
			}else{
				scope.message(res);
				$('#chaihb').modal('hide');
			}
		
	});
}
//投票
scope.pagedata.getcode=function(){
	var logid=scope.pagedata.logid
	var rid=scope.pagedata.reply.id
	scope.post_json('jy_vote/o_detail/getcode/logid='+logid+'&rid='+rid,{},function(res){
		scope.pagedata.vote_code=res.vote_code
		scope.$evalAsync();
		scope.message('领取成功!');
	});
}
function likepiaofu() {
		var x = 100;       
		var y = 330;
		var num = Math.floor(Math.random() * 6 + 1);
		var index=$('.likepiaofu').children('img').length;
		var rand = parseInt(Math.random() * (x - y + 1) + y); 
		$(".likepiaofu").append("<img src=''>");
		$(".likepiaofu").find('img:eq(' + index + ')').attr('src','../addons/jy_vote/resource/img/like_icon_'+num+'.png')
		$(".likepiaofu").find("img").animate({
			bottom:"500px",
			opacity:"0",
			right: rand,
			width:"32px"
		},3000)
}
function followpiaofu() {
		var x = 100;       
		var y = 330;
		var num = Math.floor(Math.random() * 6 + 1);
		var index=$('.followpiaofu').children('img').length;
		var rand = parseInt(Math.random() * (x - y + 1) + y); 
		$(".followpiaofu").append("<img src=''>");
		$(".followpiaofu").find('img:eq(' + index + ')').attr('src','../addons/jy_vote/resource/img/follow_icon_'+num+'.png')
		$(".followpiaofu").find("img").animate({
			bottom:"500px",
			opacity:"0",
			right: rand,
			width:"32px"
		},3000)
}
function reset_body(){
	document.body.scrollTop = document.body.scrollTop;
}
//信息弹窗：
//前端先注册以等待接收消息
require(['jinyun_socket'],function(jinyun_socket){
    jinyun_socket.connect();
    jinyun_socket.onsystem=function(res){
        if(res.message){
			var success_title = '确认';
			if(res.url){
				success_title = '前往查看';
			}
			scope.confirm({
						'message':res.message,
						'success':res.url,
						'success_title':success_title
			});
		}
    }
});
if(scope.pagedata.list.length>0){
	var msgs=scope.pagedata.list;
	var k=0
	for(var i = 0;i<msgs.length;i++){
		setTimeout(
			function(){
					vote_tanmu(msgs[k].content,msgs[k].avatar);
					k++;
			}
		,1700*i);
	}
}
function vote_tanmu(msg,picurl) {
		var x = 100;       
		var y = 330;
		var num = Math.floor(Math.random() * 6 + 1);
		var index=$('.video-sms-list').children('li').length;
		picurl=scope.tomedia(picurl);
		picurl = picurl?picurl:'../core/resource/images/nopic.jpg';
		$htmls = '<li class="video-sms-pane"><div class="video-sms-text"><img class="video-sms-logo" src="'+ picurl+'"/><span class="overflow-h">：'+msg+'</span></div></li>';
		$(".video-sms-list").append($htmls);
		$(".video-sms-list").find("li").animate({
			bottom:"600px",
			opacity:"0",
		},10000)
}
if(window.config.container=='wechat'){
	scope.pagedata.iswechat=true;
	scope.$evalAsync();
}
</script>